package com.zeltov.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import com.zeltov.api.ArtFacade;

public class ArtController implements Controller {

    protected static Logger log =LoggerFactory.getLogger(ArtController.class);

    @Autowired
    @Qualifier("artFacade")
    ArtFacade artFacade;
    public void getArt() {
    	artFacade.getArt();
    }

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
    	log.debug("********************");
        getArt();
        return new ModelAndView("hello");
    }

}